<?php

require_once 'PHPCR/observation/EventIterator.php';


/**
 * An event listener.
 * <p>
 * <b>Level 2 only</b>
 * <p>
 * An <code>EventListener</code> can be registered via the
 * <code>observation.ObservationManager</code> object. Event listeners are
 * notified asynchronously, and see events after they occur and the transaction
 * is committed. An event listener only sees events for which the ticket that
 * registered it has sufficient access rights.
 *
 * @package phpcr
 * @subpackage observation
 */
interface phpCr_Observation_EventListener
{
    /**
     * Gets called when an event occurs.
     *
     * @param events The event set recieved.
     */
    public function onEvent( EventIterator $events );
}

